package com.insuremonitor.system.domain;

import com.insuremonitor.common.annotation.Excel;
import com.insuremonitor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 货物类型与费率的关系对象 front_insure_rate_extend
 * 
 * @author ruoyi
 * @date 2023-11-21
 */
public class FrontInsureRateExtend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 扩展保险类型id */
    private Long insureExtendId;

    /** 保险类型ID */
    @Excel(name = "保险类型ID")
    private Long insureInfoId;

    /** 扩展保险名称 */
    @Excel(name = "扩展保险名称")
    private String extendInsureName;

    /** 保险费率（单位%） */
    @Excel(name = "保险费率", readConverterExp = "单=位%")
    private BigDecimal extendInsureRate;

    /** 状态（0删除 1正常） */
    @Excel(name = "状态", readConverterExp = "0=删除,1=正常")
    private String status;

    public void setInsureExtendId(Long insureExtendId) 
    {
        this.insureExtendId = insureExtendId;
    }

    public Long getInsureExtendId() 
    {
        return insureExtendId;
    }
    public void setInsureInfoId(Long insureInfoId) 
    {
        this.insureInfoId = insureInfoId;
    }

    public Long getInsureInfoId() 
    {
        return insureInfoId;
    }
    public void setExtendInsureName(String extendInsureName) 
    {
        this.extendInsureName = extendInsureName;
    }

    public String getExtendInsureName() 
    {
        return extendInsureName;
    }
    public void setExtendInsureRate(BigDecimal extendInsureRate) 
    {
        this.extendInsureRate = extendInsureRate;
    }

    public BigDecimal getExtendInsureRate() 
    {
        return extendInsureRate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("insureExtendId", getInsureExtendId())
            .append("insureInfoId", getInsureInfoId())
            .append("extendInsureName", getExtendInsureName())
            .append("extendInsureRate", getExtendInsureRate())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
